package com.cw2.structural.bridge;

/**
 * 抽象的销售渠道
 * PhoneOnSale  ==howToSale
 * PhoneOffSale == howToSale
 * PhoneStudentSale = howToSale
 * PhonePDD == howToSale
 */
public abstract class AbstractSale {
    private String type;

    private Integer colour;


    public AbstractSale(String type, Integer colour) {
        this.type = type;
        this.colour = colour;
    }

    String getSaleInfo() {
        return "渠道:" + type + "====>" + "颜色" + colour;
    }

    void howToSale(){
        // 这里可以区分进行自定义方法
    }
}
